import { ActionDesc, PagesKey } from '@/global/constant'
import { IContentConfig, TableItemType } from '@/components/page-content/type'

const roleListContent: IContentConfig = {
  pageKey: PagesKey.RoleList,
  tableConfig: {
    // bordered: true
    size: 'small',
    rowKey: 'roleId'
  },
  isShowRowSelection: false,
  isShowMoreAction: true,
  moreActions: [
    { key: ActionDesc.Edit, label: '修改' },
    { key: ActionDesc.Delete, label: '删除' },
    { key: ActionDesc.RoleAssignPermission, label: '权限分配' }
  ],
  isShowAddBtn: true,
  isShowBatchBtn: false,
  tableItems: [
    {
      type: TableItemType.Column,
      title: '角色名称',
      dataIndex: 'roleName'
    },
    {
      type: TableItemType.Column,
      title: '备注',
      dataIndex: 'remark'
    },
    {
      type: TableItemType.Column,
      title: '创建时间',
      dataIndex: 'createTime'
    },
    {
      type: TableItemType.Column,
      title: '创建人',
      dataIndex: 'createBy'
    },
    {
      type: TableItemType.Column,
      title: '更新时间',
      dataIndex: 'updateTime'
    },
    {
      type: TableItemType.Column,
      title: '更新人',
      dataIndex: 'updateBy'
    }
  ]
}

export default roleListContent
